package com.linkcard.list.manager;

import java.util.List;

import com.linkcard.commen.tools.Page;
import com.linkcard.list.model.News;
import com.linkcard.list.persistence.NewsManagerDao;

public class NewsManagerImpl implements NewsManager {

	private NewsManagerDao newsManagerDao=null;
	public boolean addNews(News news) {
		return this.newsManagerDao.addNews(news);
	}
	public NewsManagerDao getNewsManagerDao() {
		return newsManagerDao;
	}
	public void setNewsManagerDao(NewsManagerDao newsManagerDao) {
		this.newsManagerDao = newsManagerDao;
	}
	//获得新闻列表
	public List newsList(Page pageObj, String searchStr) {
		return this.newsManagerDao.newsList(pageObj,searchStr);
	}
	//删除新闻
	public boolean deleteNews(String ids) {
		return this.newsManagerDao.deleteNews(ids);
	}
	public News findNews(Integer id) {
		return this.newsManagerDao.findNews(id);
	}
	//修改新闻
	public boolean modifyNews(News news) {
		return this.newsManagerDao.modifyNews(news);
	}

}
